package test1To10;

import java.util.Scanner;

/**
 * •连续输入字符串，请按长度为8拆分每个字符串后输出到新的字符串数组；
 * •长度不是8整数倍的字符串请在后面补数字0，空字符串不处理。
 */
public class Test04 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str;
        while (scanner.hasNext()) {
            str = scanner.nextLine();
            StringBuilder sb = new StringBuilder();
            sb.append(str);
            int num = 8-sb.length()%8;
            if(num > 0 && num < 8){
                while(num > 0){
                    sb.append('0');
                    num--;
                }
            }

            String result = sb.toString();
            while(result.length()>0){
                System.out.println(result.substring(0, 8));
                result = result.substring(8);
            }

        }
    }
}
